package com.joplus.housekeeper.ui.view.dialog;

import android.app.ProgressDialog;
import android.content.Context;

/**
 * Created by Administrator on 2016/7/15.
 *
 *
 */
public class JoProgressDialog {

    private ProgressDialog progressDialog;
    public JoProgressDialog(Context context){
        progressDialog=new ProgressDialog(context);
        progressDialog.setMessage("加载中");
    }
    public JoProgressDialog(Context context,String message){
        progressDialog=new ProgressDialog(context);
        progressDialog.setMessage(message);
    }


    public  void show(){
        if(progressDialog!=null){
            progressDialog.show();
        }
    }

    public void dismiss(){
        if(progressDialog!=null&&progressDialog.isShowing()){
            progressDialog.dismiss();
        }
    }
}
